//
// Created by 215609 on 2024/6/14.
//
//#include <jv
#ifndef AUDIOCAMERA_JAVACALLHELPER_H
#include <jni.h>
#define AUDIOCAMERA_JAVACALLHELPER_H
#define THREAD_MAIN 1

class JavaCallHelper {
public:
    JavaCallHelper(JavaVM *_javaVM, JNIEnv *_env, jobject &_jobj);
     void postH264(char *data,int length,int thread=THREAD_MAIN);

public:
//    jmethodID  回调
    JavaVM *javaVM;
    JNIEnv *env = NULL;
    jobject jobj;
//主线程回调
//子线程回调
    jmethodID jmid_postData;

};



#endif //AUDIOCAMERA_JAVACALLHELPER_H
